package proxy.j.impl;

public class Intermediary implements Buyer{
    private Buyer target;
    public Intermediary(Buyer target) {
        this.target = target;
    }
    @Override
    public String look() {
        System.out.println("前期准备");
        System.out.println("查找房源");
        System.out.println("和买家沟通时间");
// 执行目标对象的实际业务
        String feedback = target.look();
// 添加代理业务
        System.out.println("后期跟踪");
        System.out.println("和买家沟通意见");
        return "看房记录：买家反馈"+feedback;
    }
}
